package com.chj.comp.service.demo1.service.impl;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chj.comp.common.core.util.PageParam;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chj.comp.service.demo1.entity.Demo1SchedulerJob;
import com.chj.comp.service.demo1.mapper.Demo1SchedulerJobMapper;
import com.chj.comp.service.demo1.service.IDemo1SchedulerJobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author cuihui
 * @since 2022-02-15
 */
@Service
public class Demo1SchedulerJobServiceImpl extends ServiceImpl<Demo1SchedulerJobMapper, Demo1SchedulerJob> implements IDemo1SchedulerJobService {

    @Autowired
    private Demo1SchedulerJobMapper demo1SchedulerJobMapper;

    @Override
    @SentinelResource("sentinelTest")
    public Page<Demo1SchedulerJob> getDemo1SchedulerJobList(PageParam pageParam){
        return pageParam.setRecords(demo1SchedulerJobMapper.getDemo1SchedulerJobList(pageParam, pageParam.getCondition()));
    }

}
